package com.apes.project.jekunAuto.purchase.service;


import com.apes.framework.plugin.esb.api.SimpleRequest;
import com.apes.project.jekunAuto.purchase.model.Test;
import com.apes.project.jekunAuto.purchase.model.TestExt;
import org.springframework.stereotype.Service;


/**
 * 功能：当事人服务
 *
 * @author xul
 * @create 2018-01-23 14:35
 */
@Service("testExtService")
public class TestExtService extends TestService {

    public Test create(SimpleRequest request) {
        Test test = request.getO(TestExt.class);
        super.save(test);
        return findOne(test.getId());
    }

}
